<template>
	<web-view :src="`${_url}/wx_authorize/check_wxopenid?openid=${openid}`" @message="bindmessage" @onPostMessage="getMsg"></web-view>
</template>

<script>
import ajax from '@/utils/ajax.js';
export default {
	data() {
		return {
			loading: false,
			dataList: [],
			openid: '',
			_url: ''
		};
	},
	onLoad() {
		let openid = uni.getStorageSync('userInfo').xcx_openid;
		console.log(openid);
		this.openid = openid;
		this._url = ajax.apiUrl;
	},
	methods: {
		bindmessage(e) {
			var follow = e.detail.data[0].follow;
			console.log(follow, '关注情况关注情况');
			// if(follow != '1'){
			//   app.judge_follow();
			// }
		},
		getMsg(e) {
			var follow = e.detail.data[0].follow;
			console.log(follow, '关注情况关注情况2');
		}
	}
};
</script>

<style lang="scss" scoped></style>
